package com.demo.starter.domain.vo;

import com.demo.starter.entity.ArticleCategory;
import lombok.Data;

/**
 * 文章栏目 VO
 */
@Data
public class ArticleCategoryVO {

    /**
     * 栏目 id
     */
    private Long id;
    /**
     * 栏目名称
     */
    private String name;
    /**
     * 栏目别名
     */
    private String slug;
    /**
     * 文章数
     */
    private Integer articleCount;

    public ArticleCategoryVO(ArticleCategory c) {
        this.id = c.getId();
        this.name = c.getName();
        this.slug = c.getSlug();
    }
    
}
